package com.totoro.service;

import com.totoro.pojo.*;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * @author TOTORO
 * @date 2021/7/24 15:01
 * 评论逻辑接口
 */
public interface EvaluationService {


    Integer addProductComment(ProductComment productComment);

    Integer addProductCommentImage(Integer pcId, MultipartFile[] files, HttpServletRequest request);

    Integer addProductAppendComment(AppendComment appendComment);

    Integer addProductAppendCommentImage(Integer acId, MultipartFile[] files, HttpServletRequest request);

    List<ProductComment> findProductAllEvaluationByPid(int pid, int type, String sort);

    List<ProductComment> findUserMultipleEvaluation(int findType, Object id, int showType, int showContent);

    ProductComment findOneEvaluation(int pcId);

    ProductComment findProductEvaluationByMsId(@Param("msId") int msId);

    List<ProductComment> findUserAllEvaluationBySlid(SuperEvaluationFind superEvaluationFind);

    Integer addSellerReply(SellerReply sellerReply);

    Integer updateIsReply(int pcId);

    Integer deleteEvaluationImage(int ciId);

    Integer deleteAppendEvaImage(int aciId);

    Integer updateEvaluationAnonymous(int pcId);

    Integer updateEvaluationIsHaveImage(int pcId, int status);

    Integer updateAppendEvaIsHaveImage(int acId, int status);
}
